<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>编辑</title>
		<link rel="stylesheet" type="text/css" href="../../plugins/layui/css/layui.css" />
		<link href="../../kitAdmin/css/app.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" type="text/css" href="../../plugins/select2/dist/css/select2.min.css"/>
	</head>

	<body>
		<div class='kit-table'>
			<div style='margin:10px'>
				
		<form class='layui-form' action='' lay-filter='form-edit'>
			<input type='hidden' name='id'  data-link='{:id}' />
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>student_id</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:studentId}' id='_studentId' name='studentId' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>teacher_id</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:teacherId}' id='_teacherId' name='teacherId' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>score</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:score}' id='_score' name='score' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>教材ID</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:materialId}' id='_materialId' name='materialId' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>表现</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:punctuation}' id='_punctuation' name='punctuation' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>拼写</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:spelling}' id='_spelling' name='spelling' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>词汇</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:vocabulary}' id='_vocabulary' name='vocabulary' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>语法</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:grammar}' id='_grammar' name='grammar' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>word_order</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:wordOrder}' id='_wordOrder' name='wordOrder' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>open_questions</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:openQuestions}' id='_openQuestions' name='openQuestions' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>is_delete</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:isDelete}' id='_isDelete' name='isDelete' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>购买课程的ID</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:purchaseCourseId}' id='_purchaseCourseId' name='purchaseCourseId' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>剩余学时</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:remainingHours}' id='_remainingHours' name='remainingHours' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>登记学时（总学时）</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:enrolledHours}' id='_enrolledHours' name='enrolledHours' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>报告日期</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:reportDate}' id='_reportDate' name='reportDate' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>create_time</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:createTime}' id='_createTime' name='createTime' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>状态</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:status}' id='_status' name='status' class='layui-input'>
					</div>
				</div>
			</div>
		</form>
			</div>
		</div>
		<script src="../../common/js/jquery.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../static/js/base.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../plugins/jsviews/jsviews.js" type="text/javascript"></script>
		<script src="../../plugins/select2/dist/js/select2.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var uid = getQueryVariable('id');
			jQuery(document).ready(function() {
				bindFormData();
			});
			var callback_save=function(){
				return $('.layui-form').serialize();
			}
			function bindFormData(){
				if(uid){
					$.ajax({
						url:'/testReports/'+uid,
						type:'get',
						success:function(data){
							$.link(true, ".kit-table", data.data);
							$('select').select2().change();
						},
						error:function(){
							parent.layer.alert('系统或网络错误！');
						}
					});
				}
			}
		</script>
	</body>

</html>
